export const searchProps = [
  {
    type: 'select_input_one',
    value: 'channelId',
    name: '渠道',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
  {
    type: 'select',
    value: 'loanId',
    name: '产品名称',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
];

export const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    width: 70,
    customRender: (text, record, index) => `${index + 1}`,
  },
  // {
  //   dataIndex: 'mappingId',
  //   title: '编号',
  //   ellipsis: true,
  //   width: 150,
  //   customRender: (text) => text || '/',
  // },
  // {
  //   dataIndex: 'channelId',
  //   title: '渠道ID',
  //   ellipsis: true,
  //   width: 200,
  //   customRender: (text) => text || '/',
  // },
  {
    dataIndex: 'channelName',
    title: '渠道名称',
    ellipsis: true,
    width: 200,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'loanName',
    title: '产品名称',
    ellipsis: true,
    width: 200,
    scopedSlots: (text) => text || '/',
  },
  {
    dataIndex: 'loanFilterLabelVOList',
    title: '产品过滤标签',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'loanFilterLabelVOList' },
  },
  // {
  //   dataIndex: 'loanId',
  //   title: '贷超ID',
  //   ellipsis: true,
  //   width: 200,
  //   customRender: (text) => text || '/',
  // },
  {
    title: '操作',
    width: 110,
    align: 'center',
    fixed: 'right',
    dataIndex: 'operation',
    scopedSlots: {
      customRender: 'operation',
    },
  },
];
